package huawei.exam1;

import java.util.Scanner;

/**
 * @author : Rookie
 * @description :
 * @date : 2022/11/16
 */
public class HJ4 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            spiltStr(new StringBuffer(str));
        }
    }

    public static void spiltStr(StringBuffer sb) {
        if (sb.length() == 0) {
            return;
        }
        if (sb.length() < 8) {
            int bsize = 8 - sb.length();
            for (int i = 0; i < bsize ; i++) {
                sb.append(0);
            }
            System.out.println(sb);
        } else {
            System.out.println(sb.substring(0,8));
            sb = new StringBuffer(sb.substring(8));
            spiltStr(sb);
        }
    }
}
